<?php get_header(); ?>


<?php if (have_posts()) : ?>

              <h2 class="pagetitle">Search Results</h2>

              <div class="navigation">
                <p><?php next_posts_link('&laquo; Older Entries') ?><br />
                <?php previous_posts_link('Newer Entries &raquo;') ?></p>
              </div>


              <?php while (have_posts()) : the_post(); ?>

              <div class="post">
                <h3><a href="<?php echo get_permalink() ?>" rel="bookmark" title='Permanent Link: <?php echo htmlspecialchars(get_the_title(),ENT_QUOTES); ?>'><?php the_title(); ?></a></h3>
                <small style="margin-left: 42px;"><?php the_time(get_option('date_format')) ?>  by <?php the_author() ?></small>
                <div class="entry">
                  <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

                  <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                  <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
                </div>
              </div>
<?php endwhile; ?>

              <div class="navigation">
                <p><?php next_posts_link('&laquo; Older Entries') ?><br />
                <?php previous_posts_link('Newer Entries &raquo;') ?></p>
              </div>

<?php else : ?>

              <h2 class="center">No posts found. Try a different search?</h2>
              <?php include (TEMPLATEPATH . '/searchform.php'); ?>

<?php endif; ?>

            </div>
          </div>
          <div style="clear: both"></div>
        </div>
      </div>
      <!-- /wrapper --><!-- /main-content -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>